npc = {};

function npc.randomstring(n)
	local chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
	local strs = "";
	for i=1,n do
	  local index = math.random(string.len(chars));
	  strs = strs..string.sub(chars, index, index);
	end
	return strs;
end

return npc